<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Symbol内置属性</title>
</head>
<body>
    <script>
        let obj = {
            name:'yuonly',
            [Symbol.split]:function(){
                console.log('翔哥讲课了，我也该洗洗睡了');
            }
        }

        let str = 'abcd';

        str.split(obj);
    </script>
</body>
</html>